home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gPACounter, gVoiceChannel, gPathToSound, fileDelimiter, gLimit, gMusicChannel
- if not soundBusy(gMusicChannel) then
- sound playFile gMusicChannel, gPathToSound & "music" & fileDelimiter & "playagan.aif"
- end if
- end
-
- on keyDown
- global gMusicChannel
- set jKey to the keyPressed
- if jKey = "y" then
- repeat while the volume of sound gMusicChannel > 0
- set the volume of sound gMusicChannel to the volume of sound gMusicChannel - 16
- updateStage()
- LingoPause(5)
- end repeat
- sound stop gMusicChannel
- go("Num Of Players")
- else
- if jKey = "n" then
- repeat while the volume of sound gMusicChannel > 0
- set the volume of sound gMusicChannel to the volume of sound gMusicChannel - 16
- updateStage()
- LingoPause(5)
- end repeat
- sound stop gMusicChannel
- go("End")
- end if
- end if
- end
-